#region License

// Copyright (c) 2013, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This file is part of the ClearCanvas RIS/PACS open source project.
//
// The ClearCanvas RIS/PACS open source project is free software: you can
// redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// The ClearCanvas RIS/PACS open source project is distributed in the hope that it
// will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along with
// the ClearCanvas RIS/PACS open source project.  If not, see
// <http://www.gnu.org/licenses/>.

#endregion

// This file is auto-generated by the ClearCanvas.Model.SqlServer.CodeGenerator project.

namespace ClearCanvas.ImageServer.Model.EntityBrokers
{
    using System;
    using System.Xml;
    using ClearCanvas.Enterprise.Core;
    using ClearCanvas.ImageServer.Enterprise;

    public partial class DatabaseVersionSelectCriteria : EntitySelectCriteria
    {
        public DatabaseVersionSelectCriteria()
        : base("DatabaseVersion_")
        {}
        public DatabaseVersionSelectCriteria(DatabaseVersionSelectCriteria other)
        : base(other)
        {}
        public override object Clone()
        {
            return new DatabaseVersionSelectCriteria(this);
        }
        [EntityFieldDatabaseMappingAttribute(TableName="DatabaseVersion_", ColumnName="Major_")]
        public ISearchCondition<String> Major
        {
            get
            {
              if (!SubCriteria.ContainsKey("Major_"))
              {
                 SubCriteria["Major_"] = new SearchCondition<String>("Major_");
              }
              return (ISearchCondition<String>)SubCriteria["Major_"];
            } 
        }
        [EntityFieldDatabaseMappingAttribute(TableName="DatabaseVersion_", ColumnName="Minor_")]
        public ISearchCondition<String> Minor
        {
            get
            {
              if (!SubCriteria.ContainsKey("Minor_"))
              {
                 SubCriteria["Minor_"] = new SearchCondition<String>("Minor_");
              }
              return (ISearchCondition<String>)SubCriteria["Minor_"];
            } 
        }
        [EntityFieldDatabaseMappingAttribute(TableName="DatabaseVersion_", ColumnName="Build_")]
        public ISearchCondition<String> Build
        {
            get
            {
              if (!SubCriteria.ContainsKey("Build_"))
              {
                 SubCriteria["Build_"] = new SearchCondition<String>("Build_");
              }
              return (ISearchCondition<String>)SubCriteria["Build_"];
            } 
        }
        [EntityFieldDatabaseMappingAttribute(TableName="DatabaseVersion_", ColumnName="Revision_")]
        public ISearchCondition<String> Revision
        {
            get
            {
              if (!SubCriteria.ContainsKey("Revision_"))
              {
                 SubCriteria["Revision_"] = new SearchCondition<String>("Revision_");
              }
              return (ISearchCondition<String>)SubCriteria["Revision_"];
            } 
        }
    }
}
